package com.fanqiechaodan.user;

import com.fanqiechaodan.springframework.context.ApplicationContext;
import com.fanqiechaodan.user.service.UserService;

import java.io.UnsupportedEncodingException;

/**
 * @author fanqiechaodan
 * @Classname Application
 * @Description
 * @Date 2023/2/21 19:26
 */
public class TestApplication {

    public static void main(String[] args) throws UnsupportedEncodingException, ClassNotFoundException {
        ApplicationContext context = new ApplicationContext(AppConfig.class);
        UserService userService = (UserService) context.getBean("userService");
        userService.test();
    }
}
